package com.youaishujuhui.devops.web.domain.game;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Table("t_department")
@Getter
@Setter
@ToString
public class Department {

	@Id(auto=false)
	@Comment("部门/工作室id")
    private int deptId;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("所属的公司id")
	private int comId;

	@One(field = "comId")
	private Company company;
	
	@Column
	@Comment("部门/工作名字")
	private String name;
}
